package com.atguigu.cloud.apis;

import com.atguigu.cloud.resp.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

//value 找9001
@FeignClient(value = "nacos-payment-provider",fallback = PayFeignSentinelApiFallBack.class) //兜底，服务降级
public interface PayFeignSentinelApi
{
    //微服务对外暴露提供的接口
    @GetMapping("/pay/nacos/get/{orderNo}")
    public ResultData getPayByOrderNo(@PathVariable("orderNo") String orderNo);
}